// samsting : this file is auto create.

#include "Emr/2015-09-10/ListRegionsResponse.h"

namespace aliyun { namespace Emr {

ListRegionsResponse::ListRegionsResponse() {
}

const string& ListRegionsResponse::RegionType::GetName(void) const {
  return Name_;
}

const string& ListRegionsResponse::RegionType::GetId(void) const {
  return Id_;
}

const string& ListRegionsResponse::RegionType::GetAsUrl(void) const {
  return AsUrl_;
}

const std::vector<ListRegionsResponse::RegionType>& ListRegionsResponse::GetRegionTypes(void) const {
  return RegionTypes_;
}

const char* ListRegionsResponse::BaseKey(void) {
  return "ListRegionsResponse";
}

void ListRegionsResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int RegionTypes__length = 0;
  UnmarshallerInt(RegionTypes__length, response_map, "ListRegionsResponse.RegionTypes.Length");
  if(RegionTypes__length >= 0) {
    RegionTypes_.resize(RegionTypes__length);
    for(int i1 = 0; i1 < RegionTypes__length; i1++) {
      UnmarshallerString(RegionTypes_[i1].Name_, response_map, "ListRegionsResponse.RegionTypes["+string_ValueOfInt(i1)+"].Name");
      UnmarshallerString(RegionTypes_[i1].Id_, response_map, "ListRegionsResponse.RegionTypes["+string_ValueOfInt(i1)+"].Id");
      UnmarshallerString(RegionTypes_[i1].AsUrl_, response_map, "ListRegionsResponse.RegionTypes["+string_ValueOfInt(i1)+"].AsUrl");
    } // for(int i1 = 0; i1 < RegionTypes__length; i1++) {
  } // if(RegionTypes__length >= 0) {

}


} } // namespace aliyun { namespace Emr {

// end of file 
